import request from '@/utils/request'

// 订单列表
export function getOrderList(data) {
    return request({
        url: '/store/order/list',
        method: 'POST',
        data
    })
}

// 订单详情
export function getOrderInfo(data) {
    return request({
        url: '/store/order/getInfo',
        method: 'POST',
        data
    })
}

// 查询订单的所有状态
export function getOrderAllStatus() {
    return request({
        url: '/store/order/order/status',
        method: 'POST'
    })
}

// 取消订单
export function orderCancellation(data) {
    return request({
        url: '/store/order/cancel',
        method: 'POST',
        data
    })
}

// 确认收衣
export function confirmReceipt(data) {
    return request({
        url: '/store/order/confirm/coll/clothes',
        method: 'POST',
        data
    })
}

// 审核订单列表
export function getAuditOrderList(data) {
    return request({
        url: '/store/audit/store/list',
        method: 'POST',
        data
    })
}

// 订单审核、订单复核
export function orderAudit(data) {
    return request({
        url: '/store/audit/store/audit',
        method: 'POST',
        data
    })
}

// 订单信息
export function getOrderInformationData() {
    return request({
        url: '/store/order/msg',
        method: 'POST'
    })
}

// 订单列表（到店订单、衣柜订单、上门订单等专用接口）
export function getOrderCaptiveList(data) {
    return request({
        url: '/store/order/msgList',
        method: 'POST',
        data
    })
}

// 补差价、退差价、提交异常
export function commitException(data) {
    return request({
        url: '/store/order/storeAuditOrder/submit/abnormal',
        method: 'POST',
        data
    })
}

// 提交店内洗涤
export function commitInstoreWashing(data) {
    return request({
        url: '/store/order/storeOrderWash/sub/store/wash',
        method: 'POST',
        data
    })
}

// 确认洗涤完成
export function confirmWashComplete(data) {
    return request({
        url: '/store/order/storeOrderWash/wash/finish',
        method: 'POST',
        data
    })
}

// 待挂衣列表
export function getWaitingHangClothesList(data) {
    return request({
        url: '/store/order/storeOrderHang/wait/list',
        method: 'POST',
        data
    })
}

// 已挂衣列表
export function getHangingClothesList(data) {
    return request({
        url: '/store/order/storeOrderHang/hang/list',
        method: 'POST',
        data
    })
}

// 手动挂衣列表
export function getManualHangingClothesList(data) {
    return request({
        url: '/store/order/storeOrderHang/add/info',
        method: 'POST',
        data
    })
}

// 提交工厂洗涤
export function commitFactoryWashing(data) {
    return request({
        url: '/store/order/storeOrderWash/submit/factory/wash',
        method: 'POST',
        data
    })
}

// 打包提交到工厂洗涤
export function packageFactoryWashing(data) {
    return request({
        url: '/store/order/subFacWash/packOrder/fac',
        method: 'POST',
        data
    })
}

// 工厂提单工单列表
export function getFactoryOrderList(data) {
    return request({
        url: '/store/order/subFacWash/list',
        method: 'POST',
        data
    })
}

// 设置手动挂衣
export function setManualClothesHanging(data) {
    return request({
        url: '/store/order/hanging',
        method: 'POST',
        data
    })
}

// 可打包的工厂列表
export function getAvailableFactoryList() {
    return request({
        url: '/store/order/subFacWash/fac/list',
        method: 'GET'
    })
}

// 查询工厂未取走/工厂已签收列表
export function getPackedFactoryOrderList(data) {
    return request({
        url: '/store/order/facBillLad/list',
        method: 'POST',
        data
    })
}

// 查询店铺洗涤订单列表
export function getWashingOrderList(data) {
    return request({
        url: '/store/order/storeOrderWash/list',
        method: 'POST',
        data
    })
}

// 查看挂衣位置详情
export function getHangingClothesDetails(data) {
    return request({
        url: '/store/order/storeOrderHang/edit/info',
        method: 'POST',
        data
    })
}

// 选择派送
export function makeDelivery(data) {
    return request({
        url: '/store/order/storeDeliveryOrder/delivery',
        method: 'POST',
        data
    })
}

// 派送订单列表
export function getDeliveryOrderList(data) {
    return request({
        url: '/store/order/storeDeliveryOrder/list',
        method: 'POST',
        data
    })
}

// 确认衣物详情
export function getConfirmClothesDetails(data) {
    return request({
        url: '/store/order/storeDeliveryOrder/confirm/info',
        method: 'POST',
        data
    })
}

// 签收
export function confirmSignature(data) {
    return request({
        url: '/store/order/storeDeliveryOrder/sign',
        method: 'POST',
        data
    })
}